// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueI18n from 'vue-i18n'
import { Row, Col, Progress,Table,Pagination,Select,Message,Drawer,Spin,Dropdown,Menu } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import VueClipboard from 'vue-clipboard2'
import utils from './utils/index.js'
import md5 from 'js-md5'
import axios from 'axios'

Vue.use(Row);
Vue.use(Col);
Vue.use(Progress);
Vue.use(VueI18n)
Vue.use(Table)
Vue.use(Pagination)
Vue.use(Select)
Vue.use(Message)
Vue.use(Drawer)
Vue.use(Drawer)
Vue.use(Spin)
Vue.use(VueClipboard)
Vue.use(Dropdown)
Vue.use(Menu)
Vue.prototype.$md5 = md5;
Vue.prototype.$message = Message
Vue.prototype.$http = axios
Vue.prototype.utils = utils;
const i18n=new VueI18n({
  locale:localStorage.getItem('languageSet')||'en',   //从localStorage里获取用户中英文选择，没有则默认中文
  messages:{
    'zh':require('./components/language/zh'),
    'en':require('./components/language/en'),
    'jp':require('./components/language/jp'),
    'ko':require('./components/language/ko'),
    'es':require('./components/language/es'),
  }
})



Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  i18n,
  components: { App },
  template: '<App/>'
})
